package base.day06;

public class Study7 {
    public static void main(String[] args) {
        //从小到大排序列表里面的数
        int[] array = {55, 34, 12, 78, 66, 53, 13, 77};
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array.length - 1 - i; j++) {
                if (array[j] > array[j + 1]) {
                    int temp = array[j];
                    array[j] = array[j + 1];
                    array[j + 1] = temp;
                }
            }

        }
        for (int i = 0; i < array.length; i++) {
            System.out.print(array[i] + " ");

        }
        ;
    }
}
